/**
  ******************************************************************************
  * @file   :   .c
  * @version:
  * @author :
  * @brief  :
  ******************************************************************************
  * @attention
  *
  * <h2><center>&copy; Copyright(c) . BLUEX Microelectronics.
  * All rights reserved.</center></h2>
  *
  *
  ******************************************************************************
  */
/* config --------------------------------------------------------------------*/

/* includes ------------------------------------------------------------------*/
#include "app_hwecc_wrapper.h"

/* private define ------------------------------------------------------------*/

/* private typedef -----------------------------------------------------------*/

/* private variables ---------------------------------------------------------*/
app_hwecc_inst_t hwecc_inst = HWECC_INSTANCE();

/* exported variables --------------------------------------------------------*/

/* private macros ------------------------------------------------------------*/

/*============================= private function =============================*/

/*========================= end of private function ==========================*/


/*============================= exported function ============================*/

/** ---------------------------------------------------------------------------
 * @brief   :
 * @note    :
 * @param   :
 * @retval  :
-----------------------------------------------------------------------------*/
void app_hwecc_init_wrapper()
{
    app_hwecc_init( &hwecc_inst.inst );
}
/** ---------------------------------------------------------------------------
 * @brief   :
 * @note    :
 * @param   :
 * @retval  :
-----------------------------------------------------------------------------*/
void app_hwecc_uninit_wrapper()
{
    app_hwecc_uninit( &hwecc_inst.inst );
}
/** ---------------------------------------------------------------------------
 * @brief   :   Start ECC Calculation Using HWECC
 * @note    :
 * @param   :   [in]param   parameters for ecc calculation
 * @retval  :
-----------------------------------------------------------------------------*/
periph_err_t app_hwecc_calculate_wrapper( ecc_queue_t * param )
{
    ecc_rslt_t rslt = {
        .out = param->out,
        .callback = param->cb,
        .dummy = param->dummy,
    };
    return app_hwecc_calculate( &hwecc_inst.inst, &param->in, &rslt );
}

/*========================= end of exported function =========================*/


/*============================= import function ==============================*/

/*=========================== end of import function =========================*/


/*============================ interrupt function ============================*/

/*========================= end of interrupt function ========================*/


/******************** (C) COPYRIGHT BLUEX **********************END OF FILE****/





